const mysql = require('mysql');
const dbconfig = require('../util/dbconfig');

const database = mysql.createConnection({
    host: dbconfig.host,
    user: dbconfig.user,
    port: dbconfig.port,
    password: dbconfig.password,
    database: dbconfig.database
});

database.connect();

module.exports = database;